package homework.exp03;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;

public class E {
    static Scanner cin = null;

    static {
        try {
            cin = new Scanner(new FileReader(new File("E.in")));
        } catch (IOException e) {
            cin = new Scanner(System.in);
        }
    }

    public static void main(String[] args) {
        int n = cin.nextInt();
        splitInteger(n, 1, "");
        cin.close();
    }

    public static void splitInteger(int n, int start, String result) {
        if (n == 0) {
            if (result.length() > 1) {
                System.out.println(result);
            }
            return;
        }
        for (int i = start; i <= n; i++) {
            splitInteger(n - i, i, result + i + (n - i == 0 ? "" : "+"));
        }
    }
}